﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SanphamTop.ascx.cs" Inherits="Web.Module.SanphamTop" %>

<div class="content-sptop">
    <h4><asp:Image ID="Image1" runat="server" ImageUrl="~/images/Icon_39.ico" Height="12px" Width="20px"/>Sản phẩm mới nhất</h4></div>
<div class="content-listsp">
    <asp:DataList ID="listSP" runat="server" RepeatColumns="3" Width="100%" 
        RepeatDirection="Horizontal" onitemcommand="listSP_ItemCommand">
        <ItemTemplate>
            <div class="sanpham">
                <div class="imgsp"><asp:Image ImageUrl='<%# "../images/sanpham/" + Eval("Hinh_Minh_hoa").ToString() %>' Width="170px" 
                        Height="150px" runat="server" /></div>
                <br /><asp:Label CssClass="tensp" Text='<%#Eval("Ten_San_pham") %>' runat="server"></asp:Label><br />
                <asp:Label CssClass="giasp" Text='<%#FormatGia(Eval("Gia_ban").ToString()) %>' runat="server"></asp:Label><br />
                <asp:ImageButton CommandName="Order" CommandArgument='<%#Eval("Ma_San_pham") %>' ImageUrl="~/images/dat-mua.jpg" runat="server" />
            </div>
        </ItemTemplate>
    </asp:DataList>
</div>